package com.lifeonwalden.fincalc.finance.service;

import java.math.BigDecimal;
import java.math.RoundingMode;

public interface InnerRiskCalculator {
    static BigDecimal calcDrawdown(BigDecimal maxValue, BigDecimal value) {
        return value.subtract(maxValue).divide(maxValue, 4, RoundingMode.HALF_UP);
    }
}
